<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>padding与布局-等高布局</title>
  <link rel="stylesheet" type="text/css" href="../style/reset.css" ></link>
  <style>
    .box { overflow:hidden; resize:vertical; }
    .child-orange,.child-green {
      margin-bottom:-600px;
      padding-bottom:600px;
    }
    .child-orange{
      float:left;
      background:orange;
    }
    .child-green{
      float:left;
      background:green;
    }
  </style>
</head>
<body>
  <div class="box">
    <div class="child-orange">
      <p>orange</p>
    </div>
    <div class="child-green">
      <p>green</p>
      <p>green</p>
    </div>
  </div>
</body>
</html>